package com.zlz.rocketmq;

import com.zlz.rocketmq.service.ProducerService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author: zlz
 * @date: 2021/11/10 22:14
 * @description:
 * @since: JDK1.8
 */
@SpringBootApplication
public class ProducerApp {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(ProducerApp.class, args);
        ProducerService producerService = (ProducerService)context.getBean("producerService");
        producerService.send();
    }
}
